using System;
using System.Collections.Generic;
using System.Text;

namespace ClientTools.Client.Settings
{
    [Serializable]
    public class ClientTools
    {
        public List<Profile> Profiles = new List<Profile>();
        public void DeleteProfile(Profile profile) 
        {
            this.Profiles.Remove(profile);
        }

        public Settings.Profile AddNewProfile()
        {
            Settings.Profile profile = new Profile();
            profile.ProfileName = "New profile - please rename";
            profile.ProviderName = Client.Library.Provider.ProviderManager.ProviderInfos[0].ProviderName;
            profile.MaintenanceServiceURL = "http://www.yourdomain.com/webservices/ClientToolsMaintenanceService.asmx";
            profile.DBConnectionString = "Server=SERVER;Database=DATABASENAME;User ID=USERNAME;Password=PASSWORD;Trusted_Connection=False";
            profile.UmbracoPassword = "";
            profile.UmbracoUserName = "UmbracoUsername";

            this.Profiles.Add(profile);
            return profile;
        }
    }
}
